﻿//------------------------------------------------------------------
// System Name:    NRemedy
// Component:      NRemedy
// Create by:      William Wang (jibinw@wicresoft.com)
// Create Date:    2013-02-27
//------------------------------------------------------------------
using System;
using System.Collections.Generic;
using BMC.ARSystem;

namespace Wicresoft.EKA.NRemedy
{
    /// <summary>
    /// 所有Model的基类，定义并实现了属性的OnPropertyChanged，以实现UpdateEntry功能
    /// </summary>
    public class ARBaseForm
    {
        public ARBaseForm()
        {
            ValueList = new FieldValueList();
        }

        public FieldValueList ValueList { get; internal set; }

        public String FormName { get; protected set; }

        public object this[uint id]
        {
            get
            {
                return this.ValueList[id];
            }
            set
            {
                if ((value == null))
                {
                    this.ValueList[id] = System.DBNull.Value;
                }
                else
                {
                    this.ValueList[id] = value;
                }
            }
        }
    }
}
